package com.yueyang.sojourn.server.service.share;

import com.yueyang.sojourn.server.model.po.ShareData;
import com.yueyang.sojourn.server.model.vo.ShareDataVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ShareDataMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShareData record);

    int insertSelective(ShareData record);

    ShareData selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShareData record);

    int updateByPrimaryKey(ShareData record);

    ShareData findByBusinessIdAndType(@Param("businessId") Long businessId, @Param("type") Integer type);

    List<ShareDataVo> findList(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}